package com.glsc.ngateway.common.base.domainmapper.oaecology;


import com.glsc.ngateway.common.base.domain.oracle.ecology.OaDemandFlowSum;
import com.glsc.ngateway.common.base.dto.oaecology.OaDemandFlowSumDto;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author zzp
 * @date 2024/5/15
 * OA需求流转汇总Mapper
 */
@Mapper(componentModel = "spring")
public interface OaDemandFlowSumMapper {

    OaDemandFlowSumMapper INSTANCE = Mappers.getMapper(OaDemandFlowSumMapper.class);

    /**
     * 实体类转换，如字段映射名称不一致或者需要格式转换，可以通过expression表达式处理
     *
     * @param domain
     * @return
     */
    OaDemandFlowSumDto domain2dto(OaDemandFlowSum domain);

    List<OaDemandFlowSumDto> domain2dto(List<OaDemandFlowSum> domain);

    OaDemandFlowSum dto2domain(OaDemandFlowSumDto dto);

    List<OaDemandFlowSum> dto2domain(List<OaDemandFlowSumDto> dto);

}



